package com.common.www.repository.district;


import org.springframework.boot.base.jpa.repository.support.ExtendedRepository;
import com.common.www.bean.entity.district.ProvinceCity;

import org.springframework.stereotype.Repository;

/**
 * Created by cwx183898 on 2017/8/9.
 */
@Repository
public interface ProvinceCityRepository extends ExtendedRepository<ProvinceCity, Long> {

    /**
     * 按名称查询
     * @param flag
     * @param city
     * @return
     */
    ProvinceCity findByFlagAndName(Integer flag,String city);


    /**
     * 按code查询
     * @param flag
     * @param code
     * @return
     */
    ProvinceCity findByFlagAndCode(Integer flag,Long code);
}
